/**
* @描述: PictureExample.java
* @作者: guoxia
* @公司 浙江鸿程计算机系统有限公司
* @创建日期: 2023-04-07 05:56:49
*/
package com.hcss.picture.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PictureExample {
    /**
     * ATHENA.PICTURE
     */
    protected String orderByClause;

    /**
     * ATHENA.PICTURE
     */
    protected boolean distinct;

    /**
     * ATHENA.PICTURE
     */
    protected List<Criteria> oredCriteria;

    /**
     * ATHENA.PICTURE
     */
    protected String groupBy;

    /**
     *  构造查询条件
     */
    public PictureExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *  设置排序字段
     *
     * @param orderByClause 排序字段
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *  获取排序字段
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *  设置过滤重复数据
     *
     * @param distinct 是否过滤重复数据
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *  是否过滤重复数据
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *  获取当前的查询条件实例
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *  新增一个查询条件
     *
     * @param criteria 过滤条件实例
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *  新增一个查询条件
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *  创建一个查询条件
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *  内部构建查询条件对象
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *  清除查询条件
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     *  设置分组字段
     *
     * @param groupBy
     */
    public void setGroupBy(String groupBy) {
        this.groupBy=groupBy;
    }

    /**
     *  获取分组字段
     */
    public String getGroupBy() {
        return groupBy;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPictureNameIsNull() {
            addCriterion("PICTURE_NAME is null");
            return (Criteria) this;
        }

        public Criteria andPictureNameIsNotNull() {
            addCriterion("PICTURE_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andPictureNameEqualTo(String value) {
            addCriterion("PICTURE_NAME =", value, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameNotEqualTo(String value) {
            addCriterion("PICTURE_NAME <>", value, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameGreaterThan(String value) {
            addCriterion("PICTURE_NAME >", value, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameGreaterThanOrEqualTo(String value) {
            addCriterion("PICTURE_NAME >=", value, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameLessThan(String value) {
            addCriterion("PICTURE_NAME <", value, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameLessThanOrEqualTo(String value) {
            addCriterion("PICTURE_NAME <=", value, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameLike(String value) {
            addCriterion("PICTURE_NAME like", value, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameNotLike(String value) {
            addCriterion("PICTURE_NAME not like", value, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameIn(List<String> values) {
            addCriterion("PICTURE_NAME in", values, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameNotIn(List<String> values) {
            addCriterion("PICTURE_NAME not in", values, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameBetween(String value1, String value2) {
            addCriterion("PICTURE_NAME between", value1, value2, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureNameNotBetween(String value1, String value2) {
            addCriterion("PICTURE_NAME not between", value1, value2, "pictureName");
            return (Criteria) this;
        }

        public Criteria andPictureAddressIsNull() {
            addCriterion("PICTURE_ADDRESS is null");
            return (Criteria) this;
        }

        public Criteria andPictureAddressIsNotNull() {
            addCriterion("PICTURE_ADDRESS is not null");
            return (Criteria) this;
        }

        public Criteria andPictureAddressEqualTo(String value) {
            addCriterion("PICTURE_ADDRESS =", value, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressNotEqualTo(String value) {
            addCriterion("PICTURE_ADDRESS <>", value, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressGreaterThan(String value) {
            addCriterion("PICTURE_ADDRESS >", value, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressGreaterThanOrEqualTo(String value) {
            addCriterion("PICTURE_ADDRESS >=", value, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressLessThan(String value) {
            addCriterion("PICTURE_ADDRESS <", value, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressLessThanOrEqualTo(String value) {
            addCriterion("PICTURE_ADDRESS <=", value, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressLike(String value) {
            addCriterion("PICTURE_ADDRESS like", value, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressNotLike(String value) {
            addCriterion("PICTURE_ADDRESS not like", value, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressIn(List<String> values) {
            addCriterion("PICTURE_ADDRESS in", values, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressNotIn(List<String> values) {
            addCriterion("PICTURE_ADDRESS not in", values, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressBetween(String value1, String value2) {
            addCriterion("PICTURE_ADDRESS between", value1, value2, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureAddressNotBetween(String value1, String value2) {
            addCriterion("PICTURE_ADDRESS not between", value1, value2, "pictureAddress");
            return (Criteria) this;
        }

        public Criteria andPictureTypeIsNull() {
            addCriterion("PICTURE_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andPictureTypeIsNotNull() {
            addCriterion("PICTURE_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andPictureTypeEqualTo(String value) {
            addCriterion("PICTURE_TYPE =", value, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeNotEqualTo(String value) {
            addCriterion("PICTURE_TYPE <>", value, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeGreaterThan(String value) {
            addCriterion("PICTURE_TYPE >", value, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeGreaterThanOrEqualTo(String value) {
            addCriterion("PICTURE_TYPE >=", value, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeLessThan(String value) {
            addCriterion("PICTURE_TYPE <", value, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeLessThanOrEqualTo(String value) {
            addCriterion("PICTURE_TYPE <=", value, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeLike(String value) {
            addCriterion("PICTURE_TYPE like", value, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeNotLike(String value) {
            addCriterion("PICTURE_TYPE not like", value, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeIn(List<String> values) {
            addCriterion("PICTURE_TYPE in", values, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeNotIn(List<String> values) {
            addCriterion("PICTURE_TYPE not in", values, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeBetween(String value1, String value2) {
            addCriterion("PICTURE_TYPE between", value1, value2, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTypeNotBetween(String value1, String value2) {
            addCriterion("PICTURE_TYPE not between", value1, value2, "pictureType");
            return (Criteria) this;
        }

        public Criteria andPictureTimeIsNull() {
            addCriterion("PICTURE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andPictureTimeIsNotNull() {
            addCriterion("PICTURE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andPictureTimeEqualTo(Date value) {
            addCriterion("PICTURE_TIME =", value, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeNotEqualTo(Date value) {
            addCriterion("PICTURE_TIME <>", value, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeGreaterThan(Date value) {
            addCriterion("PICTURE_TIME >", value, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("PICTURE_TIME >=", value, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeLessThan(Date value) {
            addCriterion("PICTURE_TIME <", value, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeLessThanOrEqualTo(Date value) {
            addCriterion("PICTURE_TIME <=", value, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeIn(List<Date> values) {
            addCriterion("PICTURE_TIME in", values, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeNotIn(List<Date> values) {
            addCriterion("PICTURE_TIME not in", values, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeBetween(Date value1, Date value2) {
            addCriterion("PICTURE_TIME between", value1, value2, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andPictureTimeNotBetween(Date value1, Date value2) {
            addCriterion("PICTURE_TIME not between", value1, value2, "pictureTime");
            return (Criteria) this;
        }

        public Criteria andOptiorNameIsNull() {
            addCriterion("OPTIOR_NAME is null");
            return (Criteria) this;
        }

        public Criteria andOptiorNameIsNotNull() {
            addCriterion("OPTIOR_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andOptiorNameEqualTo(String value) {
            addCriterion("OPTIOR_NAME =", value, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameNotEqualTo(String value) {
            addCriterion("OPTIOR_NAME <>", value, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameGreaterThan(String value) {
            addCriterion("OPTIOR_NAME >", value, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameGreaterThanOrEqualTo(String value) {
            addCriterion("OPTIOR_NAME >=", value, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameLessThan(String value) {
            addCriterion("OPTIOR_NAME <", value, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameLessThanOrEqualTo(String value) {
            addCriterion("OPTIOR_NAME <=", value, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameLike(String value) {
            addCriterion("OPTIOR_NAME like", value, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameNotLike(String value) {
            addCriterion("OPTIOR_NAME not like", value, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameIn(List<String> values) {
            addCriterion("OPTIOR_NAME in", values, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameNotIn(List<String> values) {
            addCriterion("OPTIOR_NAME not in", values, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameBetween(String value1, String value2) {
            addCriterion("OPTIOR_NAME between", value1, value2, "optiorName");
            return (Criteria) this;
        }

        public Criteria andOptiorNameNotBetween(String value1, String value2) {
            addCriterion("OPTIOR_NAME not between", value1, value2, "optiorName");
            return (Criteria) this;
        }

        public Criteria andIfDeleteIsNull() {
            addCriterion("IF_DELETE is null");
            return (Criteria) this;
        }

        public Criteria andIfDeleteIsNotNull() {
            addCriterion("IF_DELETE is not null");
            return (Criteria) this;
        }

        public Criteria andIfDeleteEqualTo(String value) {
            addCriterion("IF_DELETE =", value, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteNotEqualTo(String value) {
            addCriterion("IF_DELETE <>", value, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteGreaterThan(String value) {
            addCriterion("IF_DELETE >", value, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteGreaterThanOrEqualTo(String value) {
            addCriterion("IF_DELETE >=", value, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteLessThan(String value) {
            addCriterion("IF_DELETE <", value, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteLessThanOrEqualTo(String value) {
            addCriterion("IF_DELETE <=", value, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteLike(String value) {
            addCriterion("IF_DELETE like", value, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteNotLike(String value) {
            addCriterion("IF_DELETE not like", value, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteIn(List<String> values) {
            addCriterion("IF_DELETE in", values, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteNotIn(List<String> values) {
            addCriterion("IF_DELETE not in", values, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteBetween(String value1, String value2) {
            addCriterion("IF_DELETE between", value1, value2, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andIfDeleteNotBetween(String value1, String value2) {
            addCriterion("IF_DELETE not between", value1, value2, "ifDelete");
            return (Criteria) this;
        }

        public Criteria andProportionIsNull() {
            addCriterion("PROPORTION is null");
            return (Criteria) this;
        }

        public Criteria andProportionIsNotNull() {
            addCriterion("PROPORTION is not null");
            return (Criteria) this;
        }

        public Criteria andProportionEqualTo(String value) {
            addCriterion("PROPORTION =", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotEqualTo(String value) {
            addCriterion("PROPORTION <>", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionGreaterThan(String value) {
            addCriterion("PROPORTION >", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionGreaterThanOrEqualTo(String value) {
            addCriterion("PROPORTION >=", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionLessThan(String value) {
            addCriterion("PROPORTION <", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionLessThanOrEqualTo(String value) {
            addCriterion("PROPORTION <=", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionLike(String value) {
            addCriterion("PROPORTION like", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotLike(String value) {
            addCriterion("PROPORTION not like", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionIn(List<String> values) {
            addCriterion("PROPORTION in", values, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotIn(List<String> values) {
            addCriterion("PROPORTION not in", values, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionBetween(String value1, String value2) {
            addCriterion("PROPORTION between", value1, value2, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotBetween(String value1, String value2) {
            addCriterion("PROPORTION not between", value1, value2, "proportion");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}